package com.sinan.core.connector.components;

/**
 * A context for retrieving a PropertyValue from a PropertyDescriptor.
 *
 * @author pengpei
 */
public interface PropertyContext {

    /**
     * Retrieves the current value set for the given descriptor, if a value is
     * set - else uses the descriptor to determine the appropriate default value
     *
     * @param descriptor to lookup the value of
     * @return the property value of the given descriptor
     */
    PropertyValue getProperty(PropertyDescriptor descriptor);
}
